import tkinter as tk
from tkinter import font

def create_gui():
    root = tk.Tk()
    root.title("Success Message")
    root.geometry("300x150")

    # Green circle with checkmark
    canvas = tk.Canvas(root, width=24, height=24, bg='green', highlightthickness=0)
    canvas.create_oval(0, 0, 24, 24, fill='green')  # Draw a perfect circle
    canvas.create_text(12, 12, text='\u2714', fill='white', font=('Arial', 16))
    canvas.pack(pady=(10, 0))

    # Text
    label1 = tk.Label(root, text="This is a success message.")
    label1.pack()

    # Bold text
    bold_font = font.Font(weight='bold')
    label2 = tk.Label(root, text="This text is bold.", font=bold_font)
    label2.pack()

    # Horizontal line
    separator = tk.Frame(height=1, bd=1, relief=tk.SUNKEN)
    separator.pack(fill=tk.X, padx=5, pady=5)

    root.mainloop()

if __name__ == "__main__":
    create_gui()



